import request from '@/utils/request'
import { faceApiUrl } from '@/api/config'

export default {
     //安监基础设置-红黄牌发牌原因分类列表
      getClassList(data){
        return request({
          url: `${faceApiUrl}/safetyCardsDealClassification/querySafetyCardsDealClassificationList`,
          method: 'post',
          data
        })
      },
    //添加安监-安监基础设置-红黄牌发牌原因
    addInsertSelective(data){
        return request({
         url: `${faceApiUrl}/safetyCardsDealReason/insertSelective`,
         method: 'post',
         data
     })
    },
    //修改安监-安监基础设置-红黄牌发牌原因
    updateByPrimaryKeySelective(data){
        return request({
         url: `${faceApiUrl}/safetyCardsDealReason/updateByPrimaryKeySelective`,
         method: 'post',
         data
     })
    },
    //安监-安监基础设置-红黄牌发牌原因列表
    getPrimaryKeySelectiveList(data){
        return request({
            url: `${faceApiUrl}/safetyCardsDealReason/querySafetyCardsDealReasonList`,
            method: 'post',
            data
        })
    },
    //安监-安监基础设置-删除红黄牌发牌原因
    deletePrimaryKeySelective(data){
       return request({
            url: `${faceApiUrl}/safetyCardsDealReason/deleteByPrimaryKey?id=${data.id}`,
            method: 'post',
        })
    }  
        
}
